package com.gxuwz.eschool.config;



import android.app.Application;

/**
 * 定义Application子类，获取全局应用程序状态信息（包括Context对象）
 */
public class ESchoolApplication extends Application {
    private static ThreadLocal<ESchoolApplication> instance
            = new ThreadLocal<>();
    @Override
    public void onCreate() {
        super.onCreate();
        instance.set(this);
    }
    public static ESchoolApplication getInstance(){
        return instance.get();
    }
}